


import { Toast } from 'vant';


export function ShowLoading(msg='加载中'){
  Toast.clear(true)
  Toast.loading({
      message: msg,
      forbidClick: true,
  });
}

export function ShowSuccess(msg='成功'){
  Toast.clear(true)
  Toast({
    message: msg,
    icon: 'passed',
  });
}

export function ShowError(msg='失败'){
  Toast.clear(true)
  Toast.fail(msg);
}

export function ShowToast(msg='消息提示'){
  Toast.clear(true)
  Toast(msg);
}
